
/* 
component: () => import('@/pages/Search')
1. import(modulePath): 动态import引入模块, 被引入的模块会被单独打包
2. 组件配置的是一个函数, 函数中通过import动态加载模块并返回, 
    初始时函数不会执行, 第一次访问对应的路由才会执行, 也就是说只有一次请求对应的路由路径才会请求加载单独打包的js
作用: 用于提高首屏的加载速度
*/

export default [
    {
        path: '/',
        name: 'login',
        component: () => import('@/components/login')
    },
    {
        path: '/manager',
        name: 'manager',
        component: () => import('@/views/manager'),
        meta: { isManager: true },
        children: [
            {
                path: '/hadleFileWriteApplication',
                name: 'hadleFileWriteApplication',
                component: () => import('@/views/manager/handleFileWriteApplication'),
                meta: { isManager: true }
            },
            {
                path: '/manageManager',
                name: 'manageManager',
                component: () => import('@/views/manager/manageManger'),
                meta: { isManager: true }
            },
            {
                path: '/addManager',
                name: 'addManager',
                component: () => import('@/views/manager/manageManger/addManager'),
                meta: { isManager: true }
            },
            {
                path: '/manageUniversity',
                name: 'manageUniversity',
                component: () => import('@/views/manager/manageUniversity'),
                meta: { isManager: true }
            },
            {
                path: '/addUniversity',
                name: 'addUniversity',
                component: () => import('@/views/manager/manageUniversity/addUniversity'),
                meta: { isManager: true }
            },
            {
                path: '/manageTeacher',
                name: 'manageTeacher',
                component: () => import('@/views/manager/manageTeacher'),
                meta: { isManager: true }
            },
            {
                path: '/addTeacher',
                name: 'addTeacher',
                component: () => import('@/views/manager/manageTeacher/addTeacher'),
                meta: { isManager: true }
            },
            {
                path: '/managerHome',
                name: 'managerHome',
                component: () => import('@/views/manager/managerHome'),
                meta: { isManager: true }
            },
            {
                path: '/managerEdit',
                name: 'managerEdit',
                component: () => import('@/views/manager/managerHome/managerEdit'),
                meta: { isManager: true }
            },
            {
                path: '/managerEditPassword',
                name: 'managerEditPassword',
                component: () => import('@/views/manager/managerHome/managerEditPassword'),
                meta: { isManager: true }
            }
        ]
    },
    {
        path: '/user',
        name: 'user',
        component: () => import('@/views/user'),
        children: [
            {
                path: '/userHome',
                name: 'userHome',
                component: () => import('@/views/user/userHome'),
                meta: { isManager: false }
            },
            {
                path: '/userEdit',
                name: 'userEdit',
                component: () => import('@/views/user/userHome/userEdit'),
                meta: { isManager: false }
            },
            {
                path: '/userEditPassword',
                name: 'userEditPassword',
                component: () => import('@/views/user/userHome/userEditPassword'),
                meta: { isManager: false }
            },
            {
                path: '/certificates',
                name: 'certificates',
                component: () => import('@/views/user/fileWrite/certificates'),
                meta: { isManager: false }
            },
            {
                path: '/classCommittee',
                name: 'classCommittee',
                component: () => import('@/views/user/fileWrite/classCommittee'),
                meta: { isManager: false }
            },
            {
                path: '/classes',
                name: 'classes',
                component: () => import('@/views/user/fileWrite/classes'),
                meta: { isManager: false }
            },
            {
                path: '/classStudentRel',
                name: 'classStudentRel',
                component: () => import('@/views/user/fileWrite/classStudentRel'),
                meta: { isManager: false }
            },
            {
                path: '/clubInstitutionActivity',
                name: 'clubInstitutionActivity',
                component: () => import('@/views/user/fileWrite/clubInstitutionActivity'),
                meta: { isManager: false }
            },
            {
                path: '/clubInstitutionActivityStuRel',
                name: 'clubInstitutionActivityStuRel',
                component: () => import('@/views/user/fileWrite/clubInstitutionActivityStuRel'),
                meta: { isManager: false }
            },
            {
                path: '/clubInstitutionDepartmentFile',
                name: 'clubInstitutionDepartmentFile',
                component: () => import('@/views/user/fileWrite/clubInstitutionDepartmentFile'),
                meta: { isManager: false }
            },
            {
                path: '/clubInstitutionDepartmentStudentRel',
                name: 'clubInstitutionDepartmentStudentRel',
                component: () => import('@/views/user/fileWrite/clubInstitutionDepartmentStudentRel'),
                meta: { isManager: false }
            },
            {
                path: '/clubInstitutionFile',
                name: 'clubInstitutionFile',
                component: () => import('@/views/user/fileWrite/clubInstitutionFile'),
                meta: { isManager: false }
            },
            {
                path: '/college',
                name: 'college',
                component: () => import('@/views/user/fileWrite/college'),
                meta: { isManager: false }
            },
            {
                path: '/collegeEntranceExaminationFile',
                name: 'collegeEntranceExaminationFile',
                component: () => import('@/views/user/fileWrite/collegeEntranceExaminationFile'),
                meta: { isManager: false }
            },
            {
                path: '/course',
                name: 'course',
                component: () => import('@/views/user/fileWrite/course'),
                meta: { isManager: false }
            },
            {
                path: '/courseStudentRel',
                name: 'courseStudentRel',
                component: () => import('@/views/user/fileWrite/courseStudentRel'),
                meta: { isManager: false }
            },
            {
                path: '/educationBackground',
                name: 'educationBackground',
                component: () => import('@/views/user/fileWrite/educationBackground'),
                meta: { isManager: false }
            },
            {
                path: '/employmentFile',
                name: 'employmentFile',
                component: () => import('@/views/user/fileWrite/employmentFile'),
                meta: { isManager: false }
            },
            {
                path: '/examInfo',
                name: 'examInfo',
                component: () => import('@/views/user/fileWrite/examInfo'),
                meta: { isManager: false }
            },
            {
                path: '/familyFile',
                name: 'familyFile',
                component: () => import('@/views/user/fileWrite/familyFile'),
                meta: { isManager: false }
            },
            {
                path: '/graduateStudentFile',
                name: 'graduateStudentFile',
                component: () => import('@/views/user/fileWrite/graduateStudentFile'),
                meta: { isManager: false }
            },
            {
                path: '/major',
                name: 'major',
                component: () => import('@/views/user/fileWrite/major'),
                meta: { isManager: false }
            },
            {
                path: '/matches',
                name: 'matches',
                component: () => import('@/views/user/fileWrite/matches'),
                meta: { isManager: false }
            },
            {
                path: '/matchesTeam',
                name: 'matchesTeam',
                component: () => import('@/views/user/fileWrite/matchesTeam'),
                meta: { isManager: false }
            },
            {
                path: '/matchesTeamMembersRel',
                name: 'matchesTeamMembersRel',
                component: () => import('@/views/user/fileWrite/matchesTeamMembersRel'),
                meta: { isManager: false }
            },
            {
                path: '/newsFile',
                name: 'newsFile',
                component: () => import('@/views/user/fileWrite/newsFile'),
                meta: { isManager: false }
            },
            {
                path: '/studentGrade',
                name: 'studentGrade',
                component: () => import('@/views/user/fileWrite/studentGrade'),
                meta: { isManager: false }
            },
            {
                path: '/users',
                name: 'users',
                component: () => import('@/views/user/fileWrite/users'),
                meta: { isManager: false }
            },
            {
                path: '/fileWriteApplication',
                name: 'fileWriteApplication',
                component: () => import('@/views/user/fileWriteApplication'),
                meta: { isManager: false }
            },
            {
                path: '/permissionsApplyResult',
                name: 'permissionsApplyResult',
                component: () => import('@/views/user/fileWriteApplication/permissionsApplyResult'),
                meta: { isManager: false }
            },
            {
                path: '/fileMemory',
                name: 'fileMemory',
                component: () => import('@/views/user/fileMemory'),
                meta: { isManager: false }
            },
            {
                path: '/showCourseFile',
                name: 'showCourseFile',
                component: () => import('@/views/user/showFile/showCourseFile'),
                meta: { isManager: false }
            },
        ]
    }
]